package com.xuecheng.messagesdk.mapper;

import com.xuecheng.messagesdk.model.po.MqMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface MqMessageMapper extends BaseMapper<MqMessage> {

    List<MqMessage> getWaitTaskList(@Param("index") Integer shardIndex,
                                    @Param("total") Integer shardTotal,
                                    @Param("count") Integer processors);

    void updateStageThreeState(Long id);

    void updateStageOneState(Long id);

    void updateStageTwoState(Long id);
}
